home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 22 / 4 / DISK2247.ZIP / CBASE101.ZIP / CBASE.ZIP / MAKEFILE < prev   
Text File  |  1990-06-21  |  4KB  |  92 lines

  1. #    Copyright (c) 1989 Citadel
  2. #       All Rights Reserved
  3.  
  4. # makefile    1.4 - 90/06/20
  5.  
  6. # cbase library makefile
  7.  
  8. LIB    = cbase
  9. LIBDIR    = /usr/lib
  10. LLIBDIR    = /usr/lib
  11. INCDIR    = /usr/include
  12. CFLAGS    = -O
  13. LINT    = lint -b -p -lbtree -llseq -lblkio -o cbase
  14. MAN    = $(LIB).man
  15.  
  16. FILES =    makefile   cbase.h    cbase_.h                                    \
  17.     cbclose.c  cbcreate.c cbdelcur.c cbexport.c cbgetkcu.c cbgetlck.c \
  18.     cbgetr.c   cbgetrcu.c cbgetrf.c  cbimport.c cbinsert.c cbkcurso.c \
  19.     cbkeyali.c cbkeyfir.c cbkeylas.c cbkeynex.c cbkeypre.c cbkeysrc.c \
  20.     cblock.c   cbopen.c   cbputr.c   cbrcurso.c cbrecali.c cbreccnt.c \
  21.     cbrecfir.c cbreclas.c cbrecnex.c cbrecpre.c cbrecsiz.c cbsetkcu.c \
  22.     cbsetrcu.c cbsync.c                                               \
  23.     cbcmp.c    cbexp.c    cbimp.c    cbops.c
  24. MANS =    cbase.h\
  25.     cbclose.c  cbcreate.c cbdelcur.c cbexport.c cbgetkcu.c cbgetlck.c \
  26.     cbgetr.c   cbgetrcu.c cbgetrf.c  cbimport.c cbinsert.c cbkcurso.c \
  27.     cbkeyali.c cbkeyfir.c cbkeylas.c cbkeynex.c cbkeypre.c cbkeysrc.c \
  28.     cblock.c   cbopen.c   cbputr.c   cbrcurso.c cbrecali.c cbreccnt.c \
  29.     cbrecfir.c cbreclas.c cbrecnex.c cbrecpre.c cbrecsiz.c cbsetkcu.c \
  30.     cbsetrcu.c cbsync.c
  31. SRCS =    cbclose.c  cbcreate.c cbdelcur.c cbexport.c cbgetkcu.c cbgetlck.c \
  32.     cbgetr.c   cbgetrcu.c cbgetrf.c  cbimport.c cbinsert.c cbkeyali.c \
  33.     cbkeyfir.c cbkeylas.c cbkeynex.c cbkeypre.c cbkeysrc.c cblock.c   \
  34.     cbopen.c   cbputr.c   cbrecali.c cbrecfir.c cbreclas.c cbrecnex.c \
  35.     cbrecpre.c cbsetkcu.c cbsetrcu.c cbsync.c                         \
  36.     cbcmp.c    cbexp.c    cbimp.c    cbops.c
  37. OBJS =    cbclose.o  cbcreate.o cbdelcur.o cbexport.o cbgetkcu.o cbgetlck.o \
  38.     cbgetr.o   cbgetrcu.o cbgetrf.o  cbimport.o cbinsert.o cbkeyali.o \
  39.     cbkeyfir.o cbkeylas.o cbkeynex.o cbkeypre.o cbkeysrc.o cblock.o   \
  40.     cbopen.o   cbputr.o   cbrecali.o cbrecfir.o cbreclas.o cbrecnex.o \
  41.     cbrecpre.o cbsetkcu.o cbsetrcu.o cbsync.o                         \
  42.     cbcmp.o    cbexp.o    cbimp.o    cbops.o
  43. MODS =    $(LIB)(cbclose.o)  $(LIB)(cbcreate.o) $(LIB)(cbdelcur.o) \
  44.     $(LIB)(cbexport.o) $(LIB)(cbgetkcu.o) $(LIB)(cbgetlck.o) \
  45.     $(LIB)(cbgetr.o)   $(LIB)(cbgetrcu.o) $(LIB)(cbgetrf.o)  \
  46.     $(LIB)(cbimport.o) $(LIB)(cbinsert.o) $(LIB)(cbkeyali.o) \
  47.     $(LIB)(cbkeyfir.o) $(LIB)(cbkeylas.o) $(LIB)(cbkeynex.o) \
  48.     $(LIB)(cbkeypre.o) $(LIB)(cbkeysrc.o) $(LIB)(cblock.o)   \
  49.     $(LIB)(cbopen.o)   $(LIB)(cbputr.o)   $(LIB)(cbrecali.o) \
  50.     $(LIB)(cbrecfir.o) $(LIB)(cbreclas.o) $(LIB)(cbrecnex.o) \
  51.     $(LIB)(cbrecpre.o) $(LIB)(cbsetkcu.o) $(LIB)(cbsetrcu.o) \
  52.     $(LIB)(cbsync.o)                                         \
  53.     $(LIB)(cbcmp.o)    $(LIB)(cbexp.o)    $(LIB)(cbimp.o)    \
  54.     $(LIB)(cbops.o)
  55.  
  56. $(LIB):    $(MODS)
  57.     @echo $(LIB) up-to-date.
  58.  
  59. $(MODS):    cbase.h cbase_.h
  60.  
  61. install:
  62.     @if test -s $(INCDIR)/cbase.h = 0;            \
  63.     then                            \
  64.         echo $(INCDIR)/cbase.h exists\.;        \
  65.         echo -n "Do you wish to copy over it? ";    \
  66.         read response;                    \
  67.         case $$response in                \
  68.         y | Y | yes | YES | Yes)    ;;        \
  69.         *) exit 1            ;;        \
  70.         esac                        \
  71.     fi;                            \
  72.     cp cbase.h $(INCDIR)
  73.     @if test -s $(LIBDIR)/lib$(LIB).a = 0;            \
  74.     then                            \
  75.         echo $(LIBDIR)/lib$(LIB).a exists\.;        \
  76.         echo -n "Do you wish to copy over it? ";    \
  77.         read response;                    \
  78.         case $$response in                \
  79.         y | Y | yes | YES | Yes)    ;;        \
  80.         *) exit 1            ;;        \
  81.         esac                        \
  82.     fi;                            \
  83.     cp $(LIB) $(LIBDIR)/lib$(LIB).a
  84.     @echo $(LIB) installed.
  85.  
  86. lint:
  87.     $(LINT) $(SRCS)
  88.     mv llib-l$(LIB).ln $(LLIBDIR)
  89.  
  90. man:    $(MANS)
  91.     cat $(MANS) | manx > $(MAN)
  92.